        //轮播图
        const sliderData = [
            { url: './img-layout/pic1.jpg' },
            { url: './img-layout/pic2.jpg' },
            { url: './img-layout/pic3.jpg' },
        ]
        const img = document.querySelector('.center-rigth img')
        console.log(img);
        let i = 0
        setInterval(function () {
            i++
            if (i >= sliderData.length) {
                i = 0

            }
            img.src = sliderData[i].url
            document.querySelector('.slider-indicator .active').classList.remove('active')
            //然后添加小圆点
            document.querySelector(`.slider-indicator li:nth-child(${i + 1})`).classList.add('active')
        }, 1000)
         //轮播图end 